package com.easondongh.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品进货
 * @author EasonDongH
 * @date 2020/6/1 14:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_import")
public class GoodsImport implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "pay_type")
    private String payType;

    @TableField(value = "import_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date importTime;

    @TableField(value = "operate_person")
    private String operatePerson;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "import_price")
    private Double importPrice;

    @TableField(value = "provider_id")
    private Integer providerId;

    @TableField(exist = false)
    private String providerName;

    @TableField(value = "goods_id")
    private Integer goodsId;

    @TableField(exist = false)
    private String goodsName;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PAY_TYPE = "pay_type";

    public static final String COL_IMPORT_TIME = "import_time";

    public static final String COL_OPERATE_PERSON = "operate_person";

    public static final String COL_NUMBER = "number";

    public static final String COL_REMARK = "remark";

    public static final String COL_IMPORT_PRICE = "import_price";

    public static final String COL_PROVIDER_ID = "provider_id";

    public static final String COL_GOODS_ID = "goods_id";
}